﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace implicit_隐式转换_
{
    class KeyCode
    {
        public int KeyValue;

        public static implicit operator MouseCode(KeyCode c)
        {
            MouseCode mouse = new MouseCode();
            mouse.MouseValue = c.KeyValue;
            return mouse;
        }
    }
}
